package cn.buyclss.backend.mapper.shop;

import cn.buyclss.backend.entity.domain.shop.Goods;
import cn.buyclss.backend.entity.domain.shop.GoodsExample;

import java.util.List;

import cn.buyclss.backend.entity.po.shop.GoodsPO;
import org.apache.ibatis.annotations.Param;

public interface GoodsMapper {
    /**
     * @mbg.generated 2019-03-21
     */
    long countByExample(GoodsExample example);

    /**
     * @mbg.generated 2019-03-21
     */
    int deleteByExample(GoodsExample example);

    /**
     * @mbg.generated 2019-03-21
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * @mbg.generated 2019-03-21
     */
    int insert(Goods record);

    /**
     * @mbg.generated 2019-03-21
     */
    int insertSelective(Goods record);

    /**
     * @mbg.generated 2019-03-21
     */
    List<Goods> selectByExample(GoodsExample example);

    /**
     * @mbg.generated 2019-03-21
     */
    Goods selectByPrimaryKey(Integer id);

    /**
     * @mbg.generated 2019-03-21
     */
    int updateByExampleSelective(@Param("record") Goods record, @Param("example") GoodsExample example);

    /**
     * @mbg.generated 2019-03-21
     */
    int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);

    /**
     * @mbg.generated 2019-03-21
     */
    int updateByPrimaryKeySelective(Goods record);

    /**
     * @mbg.generated 2019-03-21
     */
    int updateByPrimaryKey(Goods record);

    List<GoodsPO> selectGoodsByUserId(Integer uid);
}